/* eslint-disable import/extensions */
<template>
  <div id="extension">
    <BottomBar style="position: fixed; left: 0; top: 0;"></BottomBar>
    <div class="content">
      <p class="extension-msg">我和宝宝一起看了绘本</p>
      <p class="story-title">{{currentInfo.title}}</p>
      <div class="story-img" @click="linkTo">
        <img :src="currentInfo.cover" alt="cover">
      </div>
      <p class="yh-btn" @click="linkTo()">收看更多精彩绘本</p>
    </div>
  </div>
</template>

<style lang="less" scoped>
#extension {
  padding-top: 1.4667rem;
  .content {
    .extension-msg {
      font-size: 0.4rem;
      color: #999999;
      line-height: 1.22rem;
      text-align: center;
    }
    .story-title {
      font-size: 0.64rem;
      line-height: 1.28rem;
      color: #333333;
      text-align: center;
    }
    .story-img {
      width: 7.6267rem;
      margin: 0.2667rem auto;

      img {
        width: 7.6267rem;

      }
    }
    .yh-btn {
      width: 8rem;
      height: 1.3333rem;
      margin: 0 auto;
      background: #2faca5;
      color: #ffffff;
      font-size: 0.48rem;
      line-height: 1.3333rem;
      text-align: center;
    }
  }
}
</style>

<script>
import BottomBar from '@/components/BottomBar.vue'
export default {
  name: 'Extension',
  components: {
    BottomBar
  },
  data () {
    return {
      currentInfo: {}
    }
  },
  created() {
    this.currentInfo.cover = this.$router.currentRoute.query.cover
    this.currentInfo.title = this.$router.currentRoute.query.title
  },
  mounted() {
    this.pageInit()
  },
  methods: {
    linkTo() {
      window.location.href = 'http://a.app.qq.com/o/simple.jsp?pkgname=com.stay.video'
    }
  }
}
</script>


